# 使用基础jdk镜像
FROM openjdk:17-jdk-alpine

WORKDIR /app

# 将jar包添加到容器中并更名
ADD ./backend/target/backend-1.0-SNAPSHOT.jar /app/app.jar

#暴露8888端口
EXPOSE 8888

ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app/app.jar"]